package com.kai.steering.data.service.service;

import com.kai.steering.common.vo.Result;
import com.kai.steering.data.service.entity.domainObject.QuestionDetailsDO;
import com.kai.steering.data.service.entity.po.QuestionDetails;
import com.kai.steering.common.web.service.BaseService;


import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <pre>
 * 题目详情 服务类
 * </pre>
 *
 * @author kai
 * @since 2022-02-23
 */
public interface QuestionDetailsService extends BaseService<QuestionDetails> {

    /**
     * 保存
     *
     * @param questionDetailsDO
     * @return
     */
    QuestionDetailsDO saveQuestionDetails(QuestionDetailsDO questionDetailsDO);

    /**
     * 修改
     *
     * @param questionDetailsDO
     * @return
     */
    boolean updateQuestionDetails(Serializable id, QuestionDetailsDO questionDetailsDO);

    /**
     * 删除
     *
     * @param id
     * @return
     */
    boolean deleteQuestionDetails(Serializable id);

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     */
    QuestionDetailsDO getQuestionDetailsById(Serializable id);

    /**
     * 根据ID获取查询对象
     *
     * @param id
     * @return
     */
    QuestionDetailsDO getQuestionDetailsByQId(Serializable id);
    /**
     * 获取全部
     *
     * @return
     */
    public List<QuestionDetailsDO> QuestionDetailsDO();

    /**
     * 判断某属性是否存在
     *
     * @param key
     * @param val
     * @param id
     * @return
     */
    boolean isExists(String key, String val, Serializable id);

    /**
     * 更据题目id列获取题目详情
     * @param collect
     * @return
     */
    public Map<String,QuestionDetailsDO> getQuestionDetailsMap(List<String> collect) ;

    }

